package com.elasticsearch.repository;

import com.elasticsearch.model.Project;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chong
 * @create 2020/3/24
 * Desc:
 */
@Repository
public interface ProjectRepository extends ElasticsearchRepository<Project,Long> {

    List<Project> findAllByIfDelete(Integer ifDelete);

    List<Project> findAllByProCodeAndProName(String code,String name);
}
